import http from '../index'

export const selectAll = () => http({
    url: '/api/cwlist',
    method: 'get'
})
export const find = (params) => http({
    url: '/api/cwlist/cfind?'+params,
    method: 'get'
})
export const deleteByid = (params) => http({
    url: '/api/cwlist?'+params,
    method: 'delete'
})
export const edit = (data) => http({
    url: '/api/cwlist',
    method: 'put',
    data
})
export const sort = (params) => http({
    url: '/api/cwlist/sort?'+params,
    method: 'get'
})
export const tjmonth = (data) => http({
    url: '/api/cwtj/month',
    method: 'post',
    data
})
export const tjday = (data) => http({
    url: '/api/cwtj/day',
    method: 'post',
    data
})
export const ipage = (data) => http({
    url: '/api/cwlist/page1',
    method: 'post',
    data
})